<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>v-bind 指令</title>
</head>

<body>

  <div id='app'>
    <!-- v-bind 动态的设置html的标签属性 -》src url title -->
    <!-- 可以直接间写成 : -->
    <img v-bind:src="imgUrl" :title="msg" alt="">
  </div>
  <script src="https://cdn.jsdelivr.net/npm/vue@2.7.16/dist/vue.js"></script>
  <script>
    const app = new Vue({
      el: '#app',
      data: {
        imgUrl: './imgs/10-02.png',
        msg: '你好'
      }
    })
  </script>
</body>

</html>